package com.xh.petdogexpert.user.dto;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.xh.petdogexpert.sys.dto.Role;

@JsonInclude(Include.NON_NULL)
public class User {
	private Integer id;

	private String nickname;

	private String password;

	private Integer age;

	private String location;

	private String email;

	private String headurl;

	private Integer roleId;

	private Role role;

	private Integer status;

	private Date loginTime;

	private List<UserDogLink> dogs;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname == null ? null : nickname.trim();
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password == null ? null : password.trim();
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
	public void setroleId(Integer roleId) {
		this.roleId = roleId;
	}
	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location == null ? null : location.trim();
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email == null ? null : email.trim();
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public List<UserDogLink> getDogs() {
		return dogs;
	}

	public void setDogs(List<UserDogLink> dogs) {
		this.dogs = dogs;
	}

	public String getHeadurl() {
		return headurl;
	}

	public void setHeadurl(String headurl) {
		this.headurl = headurl;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", nickname=" + nickname + ", password=" + password + ", age=" + age + ", location="
				+ location + ", email=" + email + ", headurl=" + headurl + ", roleId=" + roleId + ", role=" + role
				+ ", status=" + status + ", loginTime=" + loginTime + ", dogs=" + dogs + "]";
	}



}